package com.webapp.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webapp.dao.OrderInfoDao;
import com.webapp.model.OrderInfo;

@Service
public class OrderInfoService {

	@Autowired
	private OrderInfoDao orderInfoDao;
	
	public OrderInfo getByOrderNo(String orderNo) {
		return orderInfoDao.findByOrderNo(orderNo);
	}

	public void save(OrderInfo order) {
		orderInfoDao.save(order);
	}

	public OrderInfo getByOutNo(String outNo) {
		return orderInfoDao.findByOutrNo(outNo);
	}

	public void update(OrderInfo order) {
		orderInfoDao.update(order);
	}

    public OrderInfo getByOrderNo2(String payId) {
		return orderInfoDao.findByOrderNo2(payId);
    }
}
